/*
 * Created on Jun 23, 2004
 */
package org.vectrics.recruiter.user.resume;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.vectrics.batch.VectricsQuartzScheduler;
import org.vectrics.hibernate.ApplicationContext;
import org.vectrics.provider.CoreServiceLocator;
import org.vectrics.recruiter.document.CandidateDocumentIndexingBatchRun;
import org.vectrics.recruiter.user.JobAgentsBatch;


/**
 * This class will instantiate the scheduler for running job agents.
 *
 * @author mmoore
 */
public class CandidateDocumentIndexingScheduler extends VectricsQuartzScheduler {
	private transient final Log log = LogFactory.getLog(CandidateDocumentIndexingScheduler.class);
	
	
	/**
	 * Constructor
	 */
	public CandidateDocumentIndexingScheduler(ApplicationContext applicationContext) {
		super(applicationContext);
	}
	

	public String getJobName() {
		return("Candidate Document Indexing Batch");
	}
	

	public int getSecondsUntilStart() {
		Long seconds = CoreServiceLocator.getSystemService().getLongSystemConstantGlobal("document.index.batch.startup.seconds");
		return(seconds.intValue());
	}
	
	public long getSecondsInterval() {
		Long interval = CoreServiceLocator.getSystemService().getLongSystemConstantGlobal("document.index.batch.interval");
		return(interval.longValue());
	}

	public Class getJobClass() {
		return(CandidateDocumentIndexingBatchRun.class);
	}
	
}
